import customerApi from '@/config/server/api/customer.js'
import userMgr from '@/biz/user'


function getStandingBookGetAll(info) {
  return customerApi.standBookList.getStandingBookGetAll.fetch(info)
}

function updateStandingBook(info) {
  info.updaterId = userMgr.info().userId
  return customerApi.standBookList.updateStandingBook.fetch(info)
}

function detailStandingBook(info) {
  return customerApi.standBookList.detailStandingBook.fetch(info)
}

function standingbookShowPort(info) {
  info.userId = userMgr.info().userId
  return customerApi.standBookList.standingbookShowPort.fetch(info)
}

function fieldLib(info) {
  return customerApi.standBookList.fieldLib.fetch(info)
}

function createField(info) {
  return customerApi.standBookList.createField.fetch(info)
}

function fieldBatchUpdate(info) {
  return customerApi.standBookList.fieldBatchUpdate.fetch(info)
}

function delField(info) {
  return customerApi.standBookList.delField.fetch(info)
}


export default {
  getStandingBookGetAll,
  updateStandingBook,
  //台账详情
  detailStandingBook,
  standingbookShowPort,
  fieldLib,
  createField,
  fieldBatchUpdate,
  delField
}